@font-face {
    font-family: 'BobloxClassic';
    src: url('/BobloxClassic-nRjl4.ttf') format('truetype');
}

body {
    background-color: #0d0208;
    color: #00ff41;
    font-family: 'VT323', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    font-size: 18px;
    text-shadow: 0 0 2px #00ff41;
}

#container {
    border: 2px solid #00ff41;
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5), inset 0 0 10px rgba(0, 255, 65, 0.3);
    max-width: 800px;
    text-align: center;
    animation: text-flicker 0.01s infinite alternate;
}

h1 {
    font-size: 2.5em;
    color: #ffffff;
    text-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41;
}

h2, h3 {
    color: #ffffff;
    border-bottom: 1px solid #00ff41;
    padding-bottom: 5px;
    margin-top: 25px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#hacker-name {
    color: #ff0000;
    font-weight: bold;
}

p {
    line-height: 1.6;
    text-align: left;
    min-height: 5em; /* Reserve space to prevent layout shift */
}

#hacker-attributes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    text-align: left;
}

.attribute-display {
    border-left: 3px solid #00ff41;
    padding-left: 10px;
    min-height: 40px; /* Reserve space for content */
}

.attribute-display strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

#hacker-value-container {
    margin-top: 20px;
    text-align: left;
}

#hacker-value-container h3 {
    border-bottom: none;
    margin: 0;
    padding: 0;
}

#hacker-value {
    color: #ffd700;
    font-weight: bold;
}

#hacker-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    margin-top: 20px;
    border: 2px solid #00ff41;
    box-shadow: 0 0 10px #00ff41;
    object-fit: cover;
}

#hacked-games-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    min-height: 104px; /* Reserve space to prevent layout shift */
}

.hacked-game-icon {
    width: 100px;
    height: 100px;
    border: 2px solid #00ff41;
    object-fit: cover;
    box-shadow: 0 0 5px #00ff41;
}

#button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#generate-btn, #catalog-btn, #save-btn, #public-catalog-btn {
    background-color: #00ff41;
    color: #0d0208;
    border: none;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff41;
    transition: all 0.2s ease-in-out;
    text-shadow: none;
}

#generate-btn {
    margin-top: 0;
}

#generate-btn:hover, #catalog-btn:hover, #save-btn:hover, #public-catalog-btn:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px #ffffff;
}

.hacker-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.story-btn {
    background-color: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 8px 15px;
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 0 5px #00ff41;
    transition: all 0.2s ease-in-out;
    text-shadow: none;
}

.story-btn:hover {
    background-color: #00ff41;
    color: #0d0208;
    box-shadow: 0 0 15px #00ff41;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

#mode-selection-modal {
    display: flex; /* Make it visible by default */
    justify-content: center;
    align-items: center;
    background-image: url('/1754010675722.gif');
    background-size: cover;
    background-position: center;
}

#save-choice-modal {
    display: none; /* Hidden by default */
}

#mode-selection-modal .modal-content {
    width: auto;
    max-width: 600px;
    text-align: center;
    gap: 20px;
    background-color: rgba(13, 2, 8, 0.7); /* Add a semi-transparent background to make text readable */
}

.mode-selection-logo {
    max-width: 90%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

#mode-selection-modal h2 {
    font-family: 'BobloxClassic', 'VT323', monospace;
    text-align: center;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure the container takes full width */
}

#mode-selection-modal button, #catalog-selection-modal button:not(.story-btn) {
    background-color: #00ff41;
    color: #0d0208;
    border: none;
    padding: 15px 30px;
    font-family: 'BobloxClassic', 'VT323', monospace;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    text-shadow: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 10px #00ff41;
    flex-grow: 1; /* Allow buttons to grow to the same size */
    min-width: 200px; /* Prevent buttons from becoming too small */
}

#mode-selection-modal button:hover, #catalog-selection-modal button:not(.story-btn):hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px #ffffff;
}

#catalog-selection-modal .modal-content {
    width: auto;
    max-width: 600px;
    text-align: center;
    gap: 20px;
    background-color: rgba(13, 2, 8, 0.7); /* Add a semi-transparent background to make text readable */
}

#catalog-selection-modal button.story-btn {
    margin-top: 20px;
    font-size: 1.2em;
}

.modal-content {
    background-color: #0d0208;
    margin: 5% auto;
    padding: 20px;
    border: 2px solid #00ff41;
    width: 80%;
    max-width: 1200px;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.7);
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none; /* Remove border since controls have it */
    padding-bottom: 0;
    margin-bottom: 0;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: column;
}

.modal-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
}

.catalog-logo {
    height: 70px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.modal-header-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: center;
    position: relative;
    background: transparent;
    padding: 5px;
    border-bottom: none;
    z-index: 100;
    margin-bottom: 20px;
}

.catalog-count-container {
    color: #fff;
    font-size: 0.9em;
    white-space: nowrap;
    margin: 0;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

#public-catalog-search-input {
    background-color: #0d0208;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 3px 6px;
    font-family: 'VT323', monospace;
    font-size: 0.8em;
    width: 180px;
    text-shadow: 0 0 2px #00ff41;
}

#public-catalog-search-input::placeholder {
    color: rgba(0, 255, 65, 0.4);
    text-shadow: none;
}

#public-catalog-search-input:focus {
    outline: none;
    box-shadow: 0 0 5px #00ff41;
}

#public-catalog-search-btn {
    background-color: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 3px 6px;
    font-family: 'VT323', monospace;
    font-size: 0.8em;
    cursor: pointer;
    text-shadow: none;
    transition: all 0.2s ease-in-out;
}

#public-catalog-search-btn:hover {
    background-color: #00ff41;
    color: #0d0208;
}

.sort-container select {
    background-color: #0d0208;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 3px 6px;
    font-family: 'VT323', monospace;
    font-size: 0.8em;
    cursor: pointer;
}

.sort-container select:focus {
    outline: none;
    box-shadow: 0 0 5px #00ff41;
}

.modal-header-buttons {
    display: flex;
    gap: 10px;
    margin: 0 10px;
}

.modal-header button {
    background-color: #00ff41;
    color: #0d0208;
    border: none;
    padding: 3px 6px;
    font-family: 'VT323', monospace;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 5px #00ff41;
    transition: all 0.2s ease-in-out;
    text-shadow: none;
    white-space: nowrap;
}

.modal-header button:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 0 10px #ffffff;
}

.modal-content h2 {
    text-align: center;
    border-bottom: 1px solid #00ff41;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
}

#public-save-options-modal .modal-content {
    gap: 15px;
    max-width: 500px;
}

.save-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #00ff41;
    cursor: pointer;
}

.save-option:hover {
    background-color: rgba(0, 255, 65, 0.1);
}

#public-save-options-modal button {
     background-color: #00ff41;
    color: #0d0208;
    border: none;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    text-shadow: none;
    align-self: center;
    margin-top: 10px;
}

#catalog-grid, #public-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding: 20px;
    flex-grow: 1;
    justify-content: space-between;
    height: calc(100vh - 120px);
    scroll-behavior: smooth;
}

.catalog-item {
    border: 1px solid #00ff41;
    padding: 5px;
    text-align: center;
    background-color: rgba(0, 255, 65, 0.05);
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.catalog-item:hover {
    background-color: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

#catalog-item-delete {
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 20px;
    color: #ff0000;
    cursor: pointer;
    text-shadow: 1px 1px 2px #000;
    line-height: 1;
    padding: 2px;
    z-index: 2;
}

.catalog-item-delete:hover {
    color: #fff;
    font-weight: bold;
}

.catalog-item.blocked-item {
    cursor: not-allowed;
    border-color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}

.catalog-item.blocked-item:hover {
    background-color: rgba(255, 0, 0, 0.1);
}

.catalog-item.blocked-item .catalog-item-price,
.catalog-item.blocked-item .vote-container {
    display: none;
}

.catalog-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.catalog-item p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #00ff41;
    word-break: break-all;
    min-height: unset;
    text-align: center;
}

.catalog-item-price {
    color: #ffd700 !important;
    font-size: 0.8em !important;
}

.catalog-item-quantity, .catalog-item-sold {
    font-size: 0.8em !important;
    opacity: 0.8;
}

.catalog-item.sold-out {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 0, 0, 0.1);
}

.catalog-item.sold-out:hover {
    box-shadow: none;
}

.vote-container {
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.vote-count {
    font-weight: bold;
    color: #ffb700 !important;
    font-size: 0.7em !important;
}

.vote-timer {
    font-size: 0.7em !important;
    opacity: 0.7;
}

.vote-btn {
    background-color: transparent;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    font-family: 'VT323', monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
    text-shadow: none;
}

.vote-btn:hover:not(:disabled) {
    background-color: #ff4d4d;
    color: #0d0208;
}

.vote-btn:disabled {
    color: #888;
    border-color: #555;
    background-color: transparent;
    cursor: not-allowed;
}

.catalog-creator-name {
    font-size: 0.7em !important;
    color: #ffffff !important;
    margin-top: 3px !important;
    opacity: 0.8;
}

#custom-creator-modal .modal-content {
    gap: 15px;
}

#custom-creator-modal textarea {
    width: calc(100% - 20px);
    min-height: 80px;
    background-color: rgba(0, 255, 65, 0.05);
    border: 1px solid #00ff41;
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    padding: 10px;
    resize: vertical;
    text-shadow: 0 0 2px #00ff41;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#custom-creator-modal textarea.invalid {
    border-color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}

#custom-creator-modal textarea::placeholder {
    color: rgba(0, 255, 65, 0.4);
    text-shadow: none;
}

.prompt-warning {
    color: #ff0000;
    text-shadow: 0 0 2px #ff0000;
    font-size: 1.1em;
    margin-top: -5px;
    margin-bottom: 10px;
    text-align: center;
    min-height: 1.2em; /* Prevent layout shift */
}

#custom-creator-modal button {
    background-color: #00ff41;
    color: #0d0208;
    border: none;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    text-shadow: none;
    align-self: center;
    transition: all 0.2s ease-in-out;
}

#custom-creator-modal button:hover:not(:disabled) {
    background-color: #ffffff;
    color: #000000;
}

#custom-creator-modal button:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

#custom-loader {
    text-align: center;
}

#custom-loader p {
    text-align: center;
    min-height: unset;
}

#custom-loader img {
    max-width: 300px;
    border: 2px solid #00ff41;
    margin-top: 10px;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/1754010675722.gif');
    background-size: cover;
    background-position: center;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

#loading-overlay img {
    max-width: 250px;
    border: 2px solid #00ff41;
}

#loading-overlay p {
    font-family: 'BobloxClassic', 'VT323', monospace;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 0 0 15px #00ff41;
    color: #00ff41;
    min-height: unset;
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border: 2px solid #00ff41;
}

#tts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none; /* Initially hidden */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.tts-status-text {
    font-family: 'BobloxClassic', 'VT323', monospace;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 0 0 10px #ff0000;
    color: #ff0000;
    min-height: 1.2em;
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border: 1px solid #ff0000;
}

#tts-overlay img {
    max-width: 90%;
    max-height: 60vh;
    border: 3px solid #ff0000;
    box-shadow: 0 0 20px #ff0000;
}

#tts-overlay button {
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-family: 'VT323', monospace;
    font-size: 1.8em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px #ff0000;
    transition: all 0.2s ease-in-out;
    text-shadow: 2px 2px #000;
}

#tts-overlay button:hover {
    background-color: #ffffff;
    color: #ff0000;
    box-shadow: 0 0 25px #ffffff;
}

#points-display {
    position: fixed;
    top: 15px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff41;
    padding: 5px 15px;
    font-size: 1.1em;
    z-index: 500;
    box-shadow: 0 0 8px #00ff41;
    font-family: 'BobloxClassic', 'VT323', monospace;
    color: #ffffff;
    text-shadow: 0 0 5px #00ff41;
}

#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.toast-message {
    background-color: #00ff41;
    color: #0d0208;
    padding: 15px 25px;
    font-size: 1.2em;
    text-shadow: none;
    font-weight: bold;
    box-shadow: 0 0 15px #00ff41;
    animation: toast-fade 4s ease-in-out forwards;
}

@keyframes toast-fade {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    15% {
        opacity: 1;
        transform: translateX(0);
    }
    85% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Glitch effect for the main title */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0208;
    overflow: hidden;
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(45% 0 50% 0); }
    100% { clip-path: inset(55% 0 40% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 85% 0); }
    100% { clip-path: inset(80% 0 5% 0); }
}

@keyframes text-flicker {
    from { text-shadow: 0 0 2px #00ff41; }
    to { text-shadow: 0 0 4px #00ff41; }
}

.custom-creator-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 15px 0;
    text-align: left;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 1.1em;
    color: #ffffff;
}

.radio-group {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.radio-group div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hacker-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border: 1px solid #00ff41;
    background: #0d0208;
    outline: none;
    cursor: pointer;
}

.hacker-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #00ff41;
    border: 2px solid #0d0208;
    box-shadow: 0 0 5px #00ff41;
    cursor: pointer;
}

.hacker-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #00ff41;
    border: 2px solid #0d0208;
    box-shadow: 0 0 5px #00ff41;
    cursor: pointer;
}

.exp-slider {
    background: linear-gradient(90deg, #ff0000 0%, #ff0000 33%, #ffff00 34%, #ffff00 66%, #00ff00 67%, #00ff00 100%);
}

.hap-slider {
    background: linear-gradient(90deg, #ff0000 0%, #ff0000 33%, #ffff00 34%, #ffff00 66%, #00ff00 67%, #00ff00 100%);
}

#image-selection-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    border: 1px dashed rgba(0, 255, 65, 0.3);
}

#image-selection-container small {
    font-size: 0.9em;
    opacity: 0.7;
}

#image-preview-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

#selected-image-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #00ff41;
}

#remove-image-btn {
    position: absolute;
    top: -12px;
    left: 48px;
    font-size: 24px;
    background: rgba(13, 2, 8, 0.8);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#choose-image-btn {
    background-color: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 8px 15px;
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-shadow: none;
}
#choose-image-btn:hover {
    background-color: #00ff41;
    color: #0d0208;
}

#image-gallery-modal .modal-content {
    max-height: 80vh;
}

#image-gallery-content {
    overflow-y: auto;
    padding: 10px;
    max-height: 65vh;
}

.image-gallery-category {
    margin-bottom: 25px;
}

.image-gallery-category h3 {
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 65, 0.5);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

#image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding: 10px;
    max-height: 65vh;
}

.gallery-image-item {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: rgba(0, 255, 65, 0.05);
}

.gallery-image-item:hover {
    border-color: #00ff41;
    transform: scale(1.05);
}

#public-catalog-modal .modal-content {
    background-image: url('/1754010675722.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
    max-width: 100%;
    max-height: 100vh;
    margin: 0;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

#public-catalog-modal:-webkit-full-screen {
  background-color: rgba(0, 0, 0, 0.95);
}

#public-catalog-modal:fullscreen {
  background-color: rgba(0, 0, 0, 0.95);
}

#public-reaction-modal .modal-content {
    max-width: 900px;
}

#public-reaction-modal h2 {
    border-bottom: 1px solid #00ff41;
    padding-bottom: 10px;
}

#reaction-hacker-name {
    color: #ff0000;
}

#reaction-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px; /* for scrollbar */
}

.reaction-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    border-bottom: 1px solid rgba(0, 255, 65, 0.5);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.reaction-icon {
    height: 30px;
    width: auto;
    border-radius: 4px;
}

#blocked-content-warning-modal .modal-content {
    max-width: 500px;
    text-align: center;
    gap: 15px;
    align-items: center;
}

.blocked-warning-logo {
    max-width: 200px;
    margin-bottom: 10px;
}

#blocked-warning-text {
    min-height: unset;
    text-align: center;
}

#confirm-blocked-save-btn {
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    text-shadow: none;
    transition: all 0.2s ease-in-out;
}

#confirm-blocked-save-btn:hover {
    background-color: #fff;
    color: #ff0000;
}

#reddit-threads-container, #youtube-videos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reddit-thread {
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 10px;
    background-color: rgba(0, 255, 65, 0.05);
}

.reddit-thread-title {
    font-size: 1.1em;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-align: left;
}

.reddit-comments {
    padding-left: 15px;
    border-left: 2px solid rgba(0, 255, 65, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reddit-comment {
    font-size: 1em;
    line-height: 1.4;
    text-align: left;
    min-height: unset;
}

.youtube-video {
    display: flex;
    gap: 15px;
    border: 1px solid transparent;
    padding: 5px;
    transition: all 0.2s ease-in-out;
}

.youtube-video:hover {
    border-color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
}

.youtube-thumbnail {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #333;
    flex-shrink: 0;
}

.youtube-video-info {
    text-align: left;
}

.youtube-video-title {
    font-size: 1.1em;
    color: #fff;
    margin: 0 0 5px 0;
}

.youtube-video-channel, .youtube-video-views {
    font-size: 0.9em;
    opacity: 0.7;
    margin: 0;
}

/* New styles for fullscreen sidebar */
#public-catalog-modal:-webkit-full-screen .modal-header-controls,
#public-catalog-modal:fullscreen .modal-header-controls {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    background-color: rgba(13, 2, 8, 0.8);
    border: 1px solid #00ff41;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    z-index: 1000;
}

#public-catalog-modal:-webkit-full-screen .catalog-logo,
#public-catalog-modal:fullscreen .catalog-logo {
    height: 40px;
    margin-bottom: 0;
}

#public-catalog-modal:-webkit-full-screen .modal-header-controls .catalog-count-container,
#public-catalog-modal:fullscreen .modal-header-controls .catalog-count-container {
    margin: 0;
    font-size: 0.9em;
}

#public-catalog-modal:-webkit-full-screen .modal-header-controls > *,
#public-catalog-modal:fullscreen .modal-header-controls > * {
    margin: 0;
    font-size: 0.8em;
}

#public-catalog-modal:-webkit-full-screen .modal-header-controls button,
#public-catalog-modal:fullscreen .modal-header-controls button {
    padding: 5px 8px;
    font-size: 0.75em;
    white-space: nowrap;
}

#public-catalog-modal:-webkit-full-screen #public-catalog-grid,
#public-catalog-modal:fullscreen #public-catalog-grid {
    height: calc(100vh - 100px);
    padding: 20px 40px;
}

/* Adjust the grid layout for fullscreen */
@media (max-width: 768px) {
    #public-catalog-modal:-webkit-full-screen .modal-header-controls,
    #public-catalog-modal:fullscreen .modal-header-controls {
        right: 10px;
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .modal-header-controls {
        flex-direction: column;
        align-items: stretch;
    }
}